package goalie.util;

public class Pair<T1,T2> {

  public final T1 first;
  public final T2 second;

  public Pair(T1 first, T2 second) {
    this.first = first;
    this.second = second;
  }

  @Override
  public int hashCode() { return first.hashCode() ^ second.hashCode(); }

  @Override
  public boolean equals(Object o) {
    if (o == null) return false;
    if (!(o instanceof Pair)) return false;
    Pair p = (Pair) o;
    return this.first.equals(p.first) &&
           this.second.equals(p.second);
  }

}
